A Tour of Go
日本語の内容が若干古い?
英語版は一応更新されているみたい
仕方ないので英語でやる
Basics
Packages, variables, and functions
パッケージ名は慣習的にimport pathの最後の要素と同じになる
関数名は大文字で始まる
exportするというのが, おそらく関数の宣言?
型は名前の後に定義
以下のbutの意味が最初は分からなかった. 最後の引数を除き, 定義を省略できるよ, と言っている
つまり, but the lastで最後のはomitできないと言っているみたい
you can omit the type from all but the last.
戻り値に名前をつける
短い関数では省略しても良い
varで変数のリストを作成できる. 型は最後に定義
Flow control statements: for, if, else, switch and defer
More types: structs, slices, and maps
Methods and interfaces
Generics
Concurrency